/**
 * ${table.comment!} Service
 * @author jianshengxiong
 */
import { service } from "win-trade-base";
export default class ${entity}Service {

    // 查询详情
    get${entity}Info(id) {
        return service.httpService({
            baseURL: service.dfbpInfoManage,
            url: "/${cfg.request_path}/get?id=" + id,
            method: "get"
        });
    }

    // 分页查询
    get${entity}PageList(params) {
        return service.httpService({
            baseURL: service.dfbpInfoManage,
            url: "/${cfg.request_path}/pageList",
            method: "post",
            data: params
        });
    }

    // 新增
    add${entity}(params) {
        return service.httpService({
            baseURL: service.dfbpInfoManage,
            url: "/${cfg.request_path}/save",
            method: "post",
            data: params
        });
    }

    // 修改
    update${entity}(params) {
        return service.httpService({
            baseURL: service.dfbpInfoManage,
            url: "/${cfg.request_path}/update",
            method: "put",
            data: params
        });
    }

    // 批量删除
    batchDelete${entity}(params) {
        return service.httpService({
            baseURL: service.dfbpInfoManage,
            url: "/${cfg.request_path}/delete",
            method: "delete",
            data: params
        });
    }
}
